package com.example.demo.Entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;


/**
 * @version: V0.6
 * @author: 郑皓杰
 * @className: Performance
 * @packageName: com.example.demo.Entity
 * @description: 这是绩效实体类
 * @data: 2021-07-19
 **/
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@Table(name="performance")
public class Performance {
	
	/**
	 * 绩效ID
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer perid;
	
	/**
	 * 开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date start;
	
	/**
	 * 结束时间
	 */
	//@CreationTimestamp
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date end;
	
	/**
	 * 所属员工的经历
	 */
	private Integer expid;
	
	/**
	 * 评级
	 */
	private Integer rank;
	
	/**
	 * 标题
	 */
	private String title;
	
	/**
	 * 正文内容
	 */
	private String text;

	public Integer getPerid() {
		return perid;
	}

	public void setPerid(Integer perid) {
		this.perid = perid;
	}

	public Date getStart() {
		return start;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public Date getEnd() {
		return end;
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	public Integer getExpid() {
		return expid;
	}

	public void setExpid(Integer expid) {
		this.expid = expid;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Override
	public String toString() {
		return "Performance [perid=" + perid + ", start=" + start + ", end=" + end + ", expid=" + expid + ", rank="
				+ rank + ", title=" + title + ", text=" + text + "]";
	}
	
}
